/*
 * @Author: 檃
 * @Date: 2022-06-20 11:03:56
 * @LastEditTime: 2022-06-20 11:28:29
 * @Description:
 * @LastEditors: 檃
 */
import 'antd/dist/antd.min.css'
import './css/reset.css'
import 'amfe-flexible/index.js'
import './resize.js'

import { ConfigProvider } from 'antd'
import zhCN from 'antd/es/locale/zh_CN'
import { Suspense } from 'react'
import { BrowserRouter as Router } from 'react-router-dom'
import { RecoilRoot } from 'recoil'

import Layout from './layout'
import RouteList from './routes'

const App = () => {
  return (
    <ConfigProvider locale={zhCN}>
      <Suspense fallback={<div>loading</div>}>
        <RecoilRoot>
          <Router>
            <Layout>
              <RouteList></RouteList>
            </Layout>
          </Router>
        </RecoilRoot>
      </Suspense>
    </ConfigProvider>
  )
}

export default App
